package two_xia.ex7.Demo03;

public class Client {
    public static void main(String[] args) {

        TextView textView = new TextView();
        PictureView pictureView = new PictureView();
        ScrollbarDecorator scrollbarDecorator = new ScrollbarDecorator(textView);
        BorderDecorator borderDecorator = new BorderDecorator(scrollbarDecorator);
        borderDecorator.show();

        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>.");
        BorderDecorator borderDecorator1 = new BorderDecorator(pictureView);
        borderDecorator1.show();
    }

}
